package com.cooper.mediadb;

import java.io.Serializable;

public class Actor implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 11114651080062878L;
	private static final String CREATE_SQL ="CREATE TABLE ACTOR" + "("
			+ "	ID INTEGER NOT NULL UNIQUE PRIMARY KEY AUTOINCREMENT,"
			+ "	MEDIA_ID TEXT NOT NULL," + "	NAME TEXT NOT NULL,"
			+ "	ROLE TEXT," + "	THUMB TEXT," + "   PREVIEW TEXT" + ");";
	
	public static String getCreateSql() {
		return CREATE_SQL;
	}

	private String mediaId;
	private String name;
	private String role;
	private String thumb;
	private String perview;
	
	//private LocalMovie mediaInfo = null;
	
	public Actor(){
		super();
	}
	
	public Actor(String name){
		super();
		this.name = name;
	}
	
	public Actor(String mediaId, String name, String role, String thumb,String perview) {
		super();
		this.mediaId = mediaId;
		this.name = name;
		this.role = role;
		this.thumb = thumb;
		this.perview = perview;
	}

	public String getMediaId() {
		return mediaId;
	}

	public void setMediaId(String mediaId) {
		this.mediaId = mediaId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getThumb() {
		return thumb;
	}

	public void setThumb(String thumb) {
		this.thumb = thumb;
	}

	//public void setMediaInfo(LocalMovie mediaInfo) {
	//	this.mediaInfo = mediaInfo;
	//}

	public String getPerview() {
		return perview;
	}

	public void setPerview(String perview) {
		this.perview = perview;
	}
	

}
